import com.typesafe.config._


object SimpleApp extends App {
    // example of how system properties override; note this
    // must be set before the config lib is used
    System.setProperty("simple-lib.whatever", "This value comes from a system property")

    // Load our own config values from the default location, application.conf
    // 默认加载 resources 下的 application.conf 配置文件
      //val conf=ConfigFatory.load("file")
    val conf = ConfigFactory.load()
    println("The answer is: " + conf.getString("simple-app.answer"))

       println(conf.getString("simple-lib.whatever"))
      println(conf.getString("simple-lib.foo"))

}
